package sunwin.yois.web.common;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import sunwin.yoms.comm.YomsException;
import sunwin.yoms.domain.system.SysWebDomain;
import sunwin.yoms.service.system.SysWebService;

/**
 * Created by watson on 2015/10/14.
 */
@Component
public class WebConfig {
    @Autowired
    private SysWebService sysWebService;

    public String getWebUrl() throws YomsException {
        SysWebDomain Domain=sysWebService.getConfig();
        return Domain.getSysWebServiceUrl();
    }
}
